﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheatreManagementSystem
{
    public class SeatTakenException : ApplicationException
    {
        private Seat seat;
        public Seat Seat 
        {
            get
            {
                return this.Seat;
            }  
        }

        public SeatTakenException(Seat seat)
            : base(string.Format( "The seat {0} on row {1} is taken!",seat.Cols,seat.Rows))
        {
            this.seat = seat;
        }

        public SeatTakenException(string message)
            : base(message)
        { }
    }
}
